package com.ddwl.schema.vo.goods;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

/**
 * @Author hemiaojun
 * @Date 2021/4/12 16:20
 */
@ApiModel("打折商品")
@Getter
@Setter
public class DiscountItemVo {

    private String id;

    /**
     * 店铺id
     */
    @NotNull(message = "店铺id不能为空")
    @ApiModelProperty(value = "店铺id")
    private String shopId;

    /**
     * 商品id
     */
    @ApiModelProperty(value="商品id")
    private String itemId;

    /**
     * 折扣价格
     */
    @ApiModelProperty(value="折扣价格")
    private BigDecimal discountPrice;

    /**
     * 商品佣金
     */
    @ApiModelProperty(value="商品佣金")
    private BigDecimal itemCommission;

    /**
     * 折扣
     */
    @ApiModelProperty(value="折扣")
    private BigDecimal discount;

    /**
     * 库存
     */
    @ApiModelProperty(value="库存")
    private Integer stock;

    /**
     * 状态：0:进行中,1:结束
     */
    @ApiModelProperty(value = "状态：0:进行中,1:结束")
    private Integer status;

    /**
     * 打折商品sku
     */
    @ApiModelProperty(value = "打折商品sku")
    private List<DiscountItemSkuVo> skuVoList;

}
